package com.dk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dk.mapper.TbCitiesMapper;
import com.dk.pojo.TbCities;
import com.dk.service.TbCitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbCitiesServiceImpl implements TbCitiesService {

    @Autowired
    private TbCitiesMapper citiesMapper;

    @Override
    public List<TbCities> selectCityByPid(Long provinceId) {
        QueryWrapper<TbCities> wrapper = new QueryWrapper<>();
        wrapper.eq("provinceId",provinceId);
        return citiesMapper.selectList(wrapper);
    }
}
